package java8.lambda.demo02;

import java8.lambda.demo01.Apple;

/**
 * @author ChangLiang
 * @date 2020/4/22
 */
public class GreenAnd150WeightPredicate implements ApplePredicate {
    @Override
    public boolean filter(Apple apple) {
        return apple.getColor().equals("green") && apple.getWeight() > 150;
    }
}
